package com.woniuxy.commons.entity;

import com.woniuxy.commons.entity.wyh.TeacherInfo;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.swing.text.AbstractDocument;
import java.io.File;

/**
 * @Auther: 牟强
 * @Date: 2020/7/16/016 15:33
 * @Description: 视频表
 */
@Data
@Accessors(chain = true)
@Document(indexName = "es",type = "video") //es建索引
public class Vedio {
    @Id                             //主键
    private int vid;
    private String path;//视频路径
    private String school;//学校名
    private int teacherid;//教师id
    private String date;//发布时间
    @Field(type = FieldType.Text,analyzer = "ik_max_word") //通过知识点分词建立索引
    private String knowledge;//知识点
    private int open;//公开等级
    @Field(type = FieldType.Long)
    private int examine;//审核
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String content;//内容
    private int comments;   //评论数
    private int thumbsup;   //点赞数
    private int views;      //查看数
    private TeacherInfo teacherInfo;
  
}
